package com.campus.model.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("用户创建参数")
public class TSysUserCreateDto {

  @ApiModelProperty("登录用户名")
  @NotBlank(message = "登录用户名不能为空")
  private String loginName;
  @ApiModelProperty("密码")
  @NotBlank(message = "密码不能为空")
  private String password;
  @ApiModelProperty("性别")
  private String gender;
  @ApiModelProperty("生日")
  private Date birthday;
  @ApiModelProperty("电话")
  private String phone;
  @ApiModelProperty("邮箱")
  private String email;
  @ApiModelProperty("状态")
  @NotBlank(message = "状态不能为空")
  private String status;
}
